/**
* +----------------------------------------------------------------------
* | 友得云客  - 开启房产营销新纪元
* +----------------------------------------------------------------------
* | Copyright (c) 2019~2023 优得（西安）信息科技有限公司版权所有
* +----------------------------------------------------------------------
* | Licensed 友得云客不是自由软件 未经允许不可移除相关版权
* +----------------------------------------------------------------------
* | Author: UDEVE Team <tech@udeve.cn>
* +----------------------------------------------------------------------
*/
// components/comments/comment-item.js
const app = getApp()

Component({
    /**
     * 组件的属性列表
     */
    properties: {
        postId: { type: Number },
    },

    data: {
        wechat: '',
    },

    ready: function () {
        var wechat = app.globalData.myconfigs.service_wechat
        this.setData({ wechat: wechat })
    },

    methods: {

        copyWechat: function (e) {
            var _this = this
            wx.setClipboardData({
                data: _this.data.wechat,
                success: (result) => {
                    wx.showToast({
                        title: '微信号已复制',
                        icon: 'none',
                    });

                },
            });

        }

    }
})
